//定义功能，计算出数组中的最小值。**
//数组: int[] arr = {1,43,43,5,4,6,6,7,7,88,9,9,9,0,0,9};

public class zy3 {
    public static void main(String[] args) {
        int[] arr = {1, 43, 43, 5, 4, 6, 6, 7, 7, 88, 9, 9, 9, 0, 0, 9};
        int a=min(arr);
        System.out.println(a);
    }

    private static int min(int[] arr) {
        int mini=arr[0];
        for (int i = 0; i <arr.length ; i++) {
            if (arr[i]<mini) {
                mini=arr[i];
            }
        }
        return mini;
    }
}
